Category: Geeks r Us
How can I add readline (or a port of readline) to the Python distribution under Win32 and use it in a platform-neutral fashion? I found the readline5 port for Windows, and copied readline5.dll to C:Python26DLLs. If I want to use it, would I just use
try:
import readline
except importError:
import readline5
in the program I am writing/modifying? Any help would be appreciated.
That seems right to me. As long as that is the name of the module. Hope it worked for you. I'm no expert though.
It didn't work, got a traceback saying there was no module called readline5.